import * as types from './mutation-types'

const mutations = {
  [types.TOKEN] (state, token) {
    state.token = token
    localStorage.setItem('token',token)
  },
  [types.UPDATELOADINGSTATUS] (state, payload) {
    state.isLoading = payload.isLoading
  },
  [types.TABBARSTATE](state, list) {
    state.tabberstate = list
  },
  [types.TABB](state, list) {
    state.tabber = list
  },
  [types.UPDATE_DIRECTION] (state, payload) {
    state.direction = payload.direction
  }, 
}

export default mutations
